package com.hexiang.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ClientException extends Exception {
    private int code;
    private String message;
    private Throwable cause;

    public ClientException(int code, String message) {
        this.code = code;
        this.message = message;
    }
    public ClientException(Throwable cause) {
        this.cause = cause;
    }
}